package entity

import "time"

type GameRoomEntity struct {
	Id                int64     `gorm:"primaryKey;column:id"`
	CreatedAt         time.Time `gorm:"column:created_at"`
	UpdatedAt         time.Time `gorm:"column:updated_at"`
	Status            int       `gorm:"column:status"`
	RoomLevel         int       `gorm:"column:room_level"`
	Chips             string    `gorm:"column:chips"`
	ForwardProfit     int       `gorm:"column:forward_profit"`
	EnterCoin         int64     `gorm:"column:enter_coin"`
	BetMax            int64     `gorm:"column:bet_max"`
	PumpWaterPercent  int       `gorm:"column:pump_water_percent"`
	BroadcastProfit   int64     `gorm:"column:broadcast_profit"`
	TaxPercent        int       `gorm:"column:tax_percent"`
	WinUpPercent      int       `gorm:"column:win_up_percent"`
	WinDownPercent    int       `gorm:"column:win_down_percent"`
	RoomStartCount    int64     `gorm:"column:room_start_count"`
	RoomTotalCount    int64     `gorm:"column:room_total_count"`
	RoomGainLoss      int64     `gorm:"column:room_gain_loss"`
	RoomTax           int64     `gorm:"column:room_tax"`
	Periods           int64     `gorm:"column:periods"`
	BetItem           string    `gorm:"column:bet_item"`
	StartTimeRoom     int       `gorm:"column:start_time_room"`
	EndTimeRoom       int       `gorm:"column:end_time_room"`
	MinGold           int64     `gorm:"column:min_gold"`
	MaxGold           int64     `gorm:"column:max_gold"`
	MinRobotsCount    int       `gorm:"column:min_robots_count"`
	MaxRobotsCount    int       `gorm:"column:max_robots_count"`
	BetWeight         int       `gorm:"column:bet_weight"`
	GameType          int       `gorm:"column:game_type"`
	SimulationLottery string    `gorm:"column:simulation_lottery"`
	LevelConfig       string    `gorm:"column:level_config"`
	KillerMin         int       `gorm:"column:killer_min"`
	KillerMax         int       `gorm:"column:killer_max"`
	PrizePoolAmount   int64     `gorm:"column:prize_pool_amount"`
	AutoMinAmount     int64     `gorm:"column:auto_min_amount"`
	AutoMaxAmount     int64     `gorm:"column:auto_max_amount"`
	AutoEruptAmount   int64     `gorm:"column:auto_erupt_amount"`
	EruptMinAmount    int64     `gorm:"column:erupt_min_amount"`
	EruptMaxAmount    int64     `gorm:"column:erupt_max_amount"`
	EruptCount        int64     `gorm:"column:erupt_count"`
	State             int       `gorm:"column:state"`
	BarrageState      int       `gorm:"column:barrage_state"`
	StartTimeBarrage  int       `gorm:"column:start_time_barrage"`
	EndTimeBarrage    int       `gorm:"column:end_time_barrage"`
	BarrageWords      string    `gorm:"column:barrage_words"`
}

func (g *GameRoomEntity) TableName() string {
	return "t_game_room"
}
